<template>
    <div />
</template>

<script lang="ts">
import { getCurrentInstance, ComponentInternalInstance, reactive, render, h, ref, nextTick, onMounted, useAttrs, useSlots } from 'vue'

export default {
    setup(props) {
        const count = ref(1)
        const state = reactive({
            list: [123],
        })
        const container = ref()

        onMounted(() => {
            init()
        })

        const init = () => {
            console.log(container.value)

            document.addEventListener('click', () => {
                state.list.push(new Date().getTime())
                console.log(state.list)
            })
        }

        // 返回渲染函数
        return () => h('div', state.list.map((item) => h('div', item)))
    },
}

</script>
<style lang="scss" scoped>

</style>
